Efficient electrochromic nickel oxide thin films by electrodeposition