Mechanism of Fatigue in Ferroelectric Thin Films