On the Analysis of Residual Stresses Introduced in Sheet Metals by Thermal Shock Treatment