Dalitz plot analysis of the decay ω →π+π-π0