Hydrogen is a gas and oxygen is a gas. How is it that when they chemically combine to form a compound, water, the properties are different?