Optimization of Hydraulic-Hydrologic Complex System of Reservoirs and Connecting Tunnel