Modeling Quenching to Predict Residual Stress and Microstructure Distribution