On tuning and understanding electrocatalysts for hydrogen and carbon-based energy storage