Simulation of Thermal Stresses during Hardening of the Product Surface by a Heat Pulse