Effect of oxygen and water on the lifetime of organic solar cells