A photographic method of measuring refractive indices