Photoelectrochromic devices with cobalt redox electrolytes