Electrochromic materials for controlled radiant energy transfer in buildings