Atmospheres on the terrestrial planets: Clues to origin and evolution