Refractive index mapping of concentration profiles