The electrochromic properties of hydrated nickel oxide films formed by colloidal and anodic deposition