First-principles investigation of two-dimensional covalent–organic framework electrocatalysts for oxygen evolution/reduction and hydrogen evolution reactions