Total internal reflection occurs in an optical prism when light rays