with a refractive index gradient