Calculation of Thermo-Elastic Stresses in Microelectronics