Memory applications based on ferroelectric and high-permittivity dielectric thin films