Applications of poly(3,5-diaminobenzotrifluoride) as electrode in dye-sensitized solar cells and electrochromic devices