Invasion percolation in a hydrostatic or permeability gradient: Experiments and simulations.