Insight into the crystallization of amorphous imine-linked polymer networks to 2D covalent organic frameworks.