An optoelectronic sensor for cure monitoring in thermoset based components