Electrodes or formation of dielectric layers thereon