Generation of ordinary mode electromagnetic radiation near the upper hybrid frequency in the magnetosphere