Realization of a high voltage generator by series connection of floating modules