A Dynamic Model to Assess Tradeoffs in Power Production and Riverine Ecosystem Protection