Scaling of water flow through porous media and soils