Affordable smart windows with energy storage capability can replace traditional ones in modern structures