The mechanism of single-charge-exchange by pion and nucleon induced reactions