Modeling the solidification of semicrystalline poymers