The electrochromic process in non-stoichiometric nickel oxide thin film electrodes