Studies on electrochromic properties of nickel and cobalt oxide thin films prepared by thermal oxidation of their electrodeposited chalcogenides