Modeling of Residual Stress and Machining Distortion in Aerospace Components