All-polymeric electrochromic and photoelectrochemical devices: new advances