Optimization and comparison of two soft switched high voltage converter modulator topologies