Selection of materials for electrodes