A comparative energy analysis of three electrochromic glazing technologies in commercial and residential buildings