Flexible electrochromic fiber with rapid color switching and high optical modulation