Modelling of phase transitions and residual thermal stress of CTBN rubber modified epoxy resins during a pultrusion process