Facile synthesis of 3D covalent organic frameworks via a two-in-one strategy.