Real-time waveform modulator based on dispersion engineering of magnetic surface plasmons