Deposition of conductive or insulating materials for electrodes conducting electric current