Study on biofilm's spatial distribution and effects on permeability in porous media