Electrochromic properties of Ni(1−x)O and composite Ni(1−x)O-polyaniline thin films prepared by the peroxo soft chemistry route