Rate equations from the Keldysh formalism applied to the phonon peak in resonant-tunneling diodes.