Measurement of the neutral D meson mixing parameters in a time-dependent amplitude analysis of the D0 -> pi+ pi- pi0 decay