Studies on spray pyrolyzed cobalt oxide and nickel oxide thin films and their electrochromic properties