Causes of sulfur dioxide and nitrogen oxides in the atmosphere