How a new generation of ‘smart windows’ could keep you warm in winter and cool in summer