Theory of H-bonding to a pseudomorphic monolayer of Ni on a W(001) surface