Proton conduction in crystalline and porous covalent organic frameworks.