Nuclear structure in pion scattering and charge exchange