A small strain model to simulate the curing of thermosets