Internal functionalization of three-dimensional covalent organic frameworks.