A Finite-Element Model for Residual Stresses and Deflections in Girth-Butt Welded Pipes