Controlling triplet–triplet upconversion and singlet-triplet annihilation in organic light-emitting diodes for injection lasing