Quantum Mechanical Studies of Electrocatalysts for the Hydrogen and Oxygen Evolution Reactions