The reaction π−p → π−π−π+p at 25 and 40 GeV/c