Particle Swarm Optimization Tuning of Modular Multilevel Converters in a Time-Invariant Framework