Amplitude analysis of pion-nucleus scattering