Dynamic permeability functions for partially saturated porous media