Energy dissipation, runoff production, and the three‐dimensional structure of river basins