Optoelectronic refractive index measurements: Application to smart processing