Electron-cyclotron heating of plasma in toroidal systems