the emergent ray grazes the emergent surface. Find the refractive index of the material