Refractive index measurement in TCO layers for micro optoelectronic devices