Analysis of Process Induced Shape Deformations and Residual Stresses in Composite Parts during Cure