Structure of the Venus and Mars atmospheres