Retention and imprint properties of ferroelectric thin films