A cubic container is filled with a liquid whose refractive index increases linearly from top to bottom. Which of the following represents the path of a ray of light inside the liquid?