Optimization of organic solar cells