Minimizing the Energy Requirement in Batch Water Networks