Design principles based on intramolecular interactions for hydroxyl-functionalized covalent organic frameworks