the refractive index of the medium is given by