Refractive Index Measurement with a Flexible OLED-OPD Detection Unit