In Situ Colorimetric Analysis of Electrochromic Polymers and Devices