Dislocation generation due to differences between the coefficients of thermal expansion