OPTOELECTRONIC REFRACTIVE INDEX MEASUREMENTS: APPLICATION FOR SMART POLYMER PROCESSING