Spectroscopic insights into the performance of quantum dot light-emitting diodes