Fatigue mechanism of the ferroelectric perovskite thin films