Chemical and Optical Properties of Electrochromic Nickel Oxide Films