Metal/metal oxide-decorated covalent organic frameworks as electrocatalysts for electrocarboxylation and water splitting