Plasma waves in the magnetosphere