Explain why a pencil half-submerged in water in an inclined position appears bent at the surface of the water.