Theory of H bonding and vibration on Ru(0001)