Interface pinning and the dynamics of capillary rise in porous media.