Tuning Porosity and Backbone Chemistry of Covalent Organic Frameworks for (Photo)Catalytic Applications