Thermal and Structural Modeling of Electrochromics on Glass