Excitation of Nucleon Resonances in Heavy-Ion Charge-Exchange Reactions