Analysis of coupled residual stresses in stamping and welding processes by finite element methods