Compact Solid-State Marx Modulator With Fast Switching for Nanosecond Pulse