Analysis of welded structures : residual stresses, distortion, and their consequences