Effect of cobalt on the electrochromic properties of NiO films deposited by spray pyrolysis