Thermal modelling of quantum cascade lasers