Thin-film electrodes