Ferroelectric thin-film capacitors