Three-dimensional finite element prediction of transient thermal history and residual deformation due to line heating