The Chemistry of the Greenhouse Effect