Photophysical and Photocatalytic Properties of Covalent Organic Frameworks