A study of the reactions π+p→ K+∑+ and K−p→π−∑+ at 10 GeV/c