A finite strain framework for the simulation of polymer curing .Part 1: Elasticity