The chemistry of the atmosphere