Effect of multipass welds and pores on residual stresses in butt-welded joints