Upconversion of whistler waves by gyrating ion beams in a plasma