Modular switching and capacitor discharge power converters at CERN for effective integration with a wide magnet variety