Modeling free-surface flow in porous media with modified incompressible SPH