An integrated optoelectronic sensor for in situ cure monitoring