Elastic and inelastic pion scattering and nuclear structure