Reference electrodes for solid polymer electrolytes