Three-dimensional microporous and mesoporous covalent organic frameworks based on cubic building units