Describe the path of a ray of light passing through the right-angled isosceles prism placed in a medium with refractive index n₂, considering the refractive index of the prism to be n₁. Provide insights into how the angles of incidence and refraction are related to the refractive indices of the prism and the surrounding medium.