Correlation between switching and fatigue in PbZr0.3Ti0.7O3 thin films