Text this: Formation of high-power, high-voltage rectangular pulses with the controlled stabilization of the pulse peak