Optimizing production of hydroxyapatite from alkaline residue for removal of Pb2+ from wastewater