Atomic-Scale Mechanisms of Defect-Induced Retention Failure in Ferroelectrics.