Role of the temperature in the chaotic behavior of a p-n junction