Mechanistic investigations into the cyclization and crystallization of benzobisoxazole-linked two-dimensional covalent organic frameworks