The electrochromic effect in cobalt oxide thin films