Characterization and recovery of phosphorus from wastewater by combined technologies