Measurement of the neutral D meson mixing parameters in a time-dependent amplitude analysis of the D0 →π+π-π0 decay