Amplitude analysis of the decay D0 -> K- K+ pi0