Structure optimization of organic light-emitting devices