Studies on electrocromic properties of nickel and cobalt oxide thin films prepared by thermal oxidation of thir electrodiposited chalcogenides