Controlling charge injection and balance in solution-processed organic optoelectronic devices