Nanoscale heat transfer in quantum cascade lasers