Reading the rainbow: tailoring the properties of electrochromic polymers