Ferroelectric layers made by thermal decomposition of organometallic compounds