Nanoscale effects on the thermal and mechanical properties of AlGaAs/GaAs quantum well laser diodes: influence on the catastrophic optical damage