An experimental and theoretical analysis of the temperature profile in semiconductor laser diodes using the photodeflection technique