Modeling the energy consumption of potable water reuse schemes