Magnetic poly-o-vanillin-functionalized core–shell nanomaterials as a smart sorbent for scavenging mercury(ii) from aqueous solution