Whistler and ion-cyclotron instabilities in the presence of an external AC electric field in the magnetosphere