Ecosystem size relationships in rivers