The use of the slab analogy in the determination of thermal stresses