A Two-Dimensional Model of the Distribution of Trace Gases in the Stratosphere and Troposphere