Invariance property in inhomogeneous scattering media with refractive-index mismatch