A Modular Generator of Nanosecond Pulses With Adjustable Polarity and High Repetition Rate