Electrochromic performance of sol–gel deposited NiO thin film