The phenomenon of refraction of light at the boundary of media