Fatigue behaviour of ferroelectric thin films for nonvolatile memories