Development of the Analysis and Optimization Strategies for Prediction of Residual Stresses Induced by Turning Processes