Versatile high-performance inverter