In situ analysis of the relationship between cure kinetics and the mechanical modulus of an epoxy resin