All fibre optoelectronic sensor with Bragg gratings for in situ cure monitoring