Fatigue, rejuvenation and self-restoring in ferroelectric thin films