Selective capture of Hg(II) and Ag(I) from water by sulfur-functionalized polyamidoamine dendrimer/magnetic Fe3O4 hybrid materials