On-site performance of an electrochromic smart window for active daylight and solar energy control in buildings