This spacecraft is headed to NASA's asteroid-crash aftermath — but first, it'll stop by Mars