Large-angle elastic scattering of charged pions on protons at 20 and 30 GeV/c incident momenta