Meteorites reveal how Earth and Mars formed