Characterization of hydrogen in metallic alloys suitable for electrolysis