Elastic scattering, pion production, and annihilation into pions in antiproton-proton interactions at 5.7 GeV/c