Sympathetic cooling of molecular ion motion to the ground state