Optimal Allocation of Water Resources Considering Water Quality and the Absorbing Pollution Capacity of Water