Measurement of the reaction π−p→(pp)n at 18.8 GeV/c