Facile synthesis of porous covalent organic frameworks for the effective extraction of nitroaromatic compounds from water samples.