Storage of an electric field for photocurrent generation in ferroelectric-functionalized organic devices