Hydrogen-hydrogen interaction in an electron gas