A 9-level three-phase multilevel converter with harmonic mitigation and integrated battery balancing