Ferroelectric thin films : basic properties and device physics for memory applications