Mining Phosphate from Wastewater: Treatment and Reuse