Electrodes for ferroelectric thin films