Stepwise removal and recovery of phosphate and fluoride from wastewater via pH-dependent precipitation: Thermodynamics, experiment and mechanism investigation