Electrochromic solar attenuation in crystalline and amorphous