Optimization of organic semiconductors