Polymers and photopolymers engineering to achieve unconventional properties in solar cells and smart windows