Electron-cyclotron heating in a mirror machine