Hydrogen is sometimes found on both sides of the periodic table because it