Pharmaceutical Wastewater and Sludge Valorization: A Review on Innovative Strategies for Energy Recovery and Waste Treatment