How to make metal alloys that stand up to hydrogen