refractive index n has a spherical cavity of radius R