How would an astronomer use index of refraction?