Conversion of electrostatic upper hybrid emissions to electromagnetic O and X mode waves in the Earth’s magnetosphere