Yield enhancement of molecular ions with MeV ion-induced electronic excitation