Review of covalent organic frameworks for single-site photocatalysis and electrocatalysis