Carboxyl-functionalized nanoparticles with magnetic core and mesopore carbon shell as adsorbents for the removal of heavy metal ions from aqueous solution.