Design, characterization and fabrication of electrochromic flexible materials for the development of smart devices