A high voltage pulser for fast variable length rectangular pulses