Analysis of polymer crystallization and residual stresses in injection molded parts