Flexible nano-photo-electrochromic film