Electrochromic properties of functional squarylium dyes