How Did Earth's Atmosphere Form?