Radiative transfer in a diffusely/specularly reflecting spherical cavity containing a gray medium