A low-cost adsorbent deriving from eggshell modified with Mg(II)-doped hydroxyapatite for removal of Cd2+ from water