Optimized reservoir operation to balance human and riverine ecosystem needs: model development, and a case study for the Tanghe reservoir, Tang river basin, China