Hydrogen in amorphous and nanocrystalline metals