Modeling of Thermal Stresses in Joining Two Layers with Multi‐ and Graded Interlayers