Integrating enhanced biological phosphorus removal (EBPR) in a resource recovery scenario