Why are compounds composed of integer ratios of elements?