Thermomechanical Analysis of the Welding Process Using the Finite Element Method