High statistics study of the reaction π−p→π−π+n: Apparatus, method of analysis, and general features of results at 17 GeV/c