Substituent engineering of covalent organic frameworks modulates the crystallinity and electrochemical reactivity