Hydrogen-induced amorphization of intermetallics