Surrogate-based optimisation of process systems to recover resources from wastewater