Mechanical and thermal buckling of functionally graded axisymmetric shells