Analysis of laser diode thermal properties with spatial resolution by means of the TRAIT method