Comets contributed to Earth’s atmosphere, says study of 3 billion-year-old minerals