Nickel oxide sol–gel films from nickel diacetate for electrochromic applications