A new dendrimer-functionalized magnetic nanosorbent for the efficient adsorption and subsequent trace measurement of Hg (II) ions in wastewater samples