Index of refraction and dispersion