Temperature-dependent photoluminescence in light-emitting diodes