Optimizing performance of layer-by-layer processed polymer solar cells