Ferroelectric polymer films for flexible memory devices