Optoelectronic characterization of the curing process of thermoset-Based composites