Development and application of a SWAT hydropower routine for flow, sediment, and energy management.