Numerical study of the dissipative trapped-electron instability in tokamaks