Chemists create tinted windows that also generate electricity