An energy-dependent partial-wave analysis of π+p → K+Σ+ between threshold and 2.35 GeV