Efficient organic light emitting diodes and photodetectors