A Review on Emerging Barrier Materials and Encapsulation Strategies for Flexible Perovskite and Organic Photovoltaics