Snell's Law and Refractive Index