What is the index of refraction of a medium if the critical angle is 40.0°, assuming the second medium is air?