Interfacial self-assembly of metal-mediated viologen-like coordination polyelectrolyte hybrids of the bisterpyridine ligand and their optical, electrochemical, and electrochromic properties.