Numerical Modelling of a Dam-Regulated River Network for Balancing Water Supply and Ecological Flow Downstream