Numerical Prediction of Residual Deformation and Failure for Powder Bed Fusion Additive Manufacturing of Metal Parts