Effect of the refractive index mismatch on light propagation through diffusive layered media