3D thermal stress analysis in functionally graded plates and shells