The electrochromic properties of nickel oxide by chemical deposition and oxidization