Dimensional stability of thermoset composites: process simulation and optimization