Hot electron effects and nanoscale heat transfer in Terahertz quantum cascade lasers