Solid state high voltage supply for EB and X-ray generators