Thermal and mechanical stresses in a functionally graded thick sphere