Entanglement of Square Nets in Covalent Organic Frameworks.