describe the relationship between the structure of simple compounds and their chemical formulas