Trade-offs between hydropower production and downstream flow requirements