The effect of the properties of porous media on light scattering