Synthesis and optimization of a green and efficient sorbent for removal of three heavy metal ions from wastewater samples: kinetic, thermodynamic, and isotherm studies