Deciphering exciton-generation processes in quantum-dot electroluminescence