Simultaneous measurement of the electronic and lattice temperatures in GaAs/Al0.45Ga0.55As quantum-cascade lasers: influence on the optical performance