Carrier dynamics in nitride-based light-emitting p-n junction diodes with two active regions emitting at different wavelengths