A partial-wave analysis of the 3π system in the reaction K−p → π+π−π0Λ at 4.2 GeV/c