The habitat-scale ecohydraulics of rivers.