A2− production in the reaction π−p → K−KS0p at 9.8 and 18.8 GeV