In a p-n junction diode, change in temperature due to heating