Measurement of D0-D¯0 Mixing from a Time-Dependent Amplitude Analysis of D0→K+π-π0 Decays