Systematic study of Kπ production in the reaction K±p→KS0π±p: technique and measurements at 10 GeV/c