“In situ monitoring of a thermoset by refractive index measurements”