Magnetic solid-phase extraction for speciation of mercury based on thiol and thioether-functionalized magnetic covalent organic frameworks nanocomposite synthesized at room temperature.