Thermal Stress and Strain Generation in Heat Treatment