Sol-Gel Thin Film Counterelectrodes for Electrochemical Devices