How does the refractive index of a medium depend on its temperature?