Optoelectronic sensor for cure monitoring in thermoset-based composites