Magnetic field effects on current, electroluminescence and photocurrent in organic light-emitting diodes