Thermal stresses in a thick plate