Hydrogen energy and hydrogen production in electrochemical energy storage