Towards energy neutral wastewater treatment: methodology and state of the art | Synapse