Preparation and electrochromic properties of NiO and ZnO-doped NiO thin films