Polarized cross-section measurements for the reaction π− p → ηn from 1171 to 2267 MeV/c and a partial-wave analysis of this reaction in the resonance region