A Marx-Based power converter topology as a current source for pulsed magnets in particle accelerators