In-depth study of the mechanism of heavy metal trapping on the surface of hydroxyapatite