Cure monitoring of composite materials using optical techniques