how is the refractive index of a material related to the speed of light in it?