How do the temperature and density of a liquid affect the refraction of light when passed through them?