The dependence of the hydrogen concentration in metals on the surface impurities