Thermoelastic stress in GaAs/AlGaAs quantum cascade lasers