REFRACTIVE-INDEX MEASUREMENTS AND THEIR APPLICATION TO SMART POLYMER PROCESSING