Analytic solution of a one-dimensional equation for aerosol and gas dispersion in the stratosphere