Two-dimensional retrieval of atmospheric composition from satellite observations