Phase transformations in unsaturated polyester resins during the cure