Phosphate recovery from wastewater via reversible adsorption