2D and 3D Porphyrinic Covalent Organic Frameworks: The Influence of Dimensionality on Functionality.