Amplitude analysis of the decay D0→K-K+π0