The electrochromic behavior of nickel oxide films sprayed at different preparative conditions