Interaction of hydrogen atoms with metals