Solution processed encapsulation for organic photovoltaics