Covalent organic frameworks for photocatalytic applications