Bilayer model of polarization offset of compositionally graded ferroelectric thin films