Pion charge-exchange scattering on nuclei and isobaric analog resonances