Electron heating caused by the ion-acoustic decay instability in a finite-length system