Electrochromism of Ni-deficient nickel oxide -- Theoretical justification