Resonant decay of upper hybrid waves and electromagnetic emissions near cyclotron harmonics in the ionosphere