Evaluation by FEM of the influence of the preheating and post-heating treatments on residual stresses in welding