Circular economy in the wastewater sector: energy generation through innovative wastewater pretreatment