Relating cyclic voltammetry and impedance analysis in a viologen electrochromic device