High-frequency electrostatic waves in the magnetosphere