Excitation energy transfer in dye-doped ternary polymer blends for light-emitting diodes and lasers