Spectral formulation of the dissipative trapped-electron instability