A Study of Light-Emitting Diodes and Transistors based on Ambipolar Organic Materials