The electron-cyclotron maser instability as a source of plasma radiation