Chemical deposition methods for ferroelectric thin films