Role of electronic, geometric, and surface properties on the mechanism of the electrochemical hydriding/dehydriding reactions