Design, implementation, and evaluation of a GaN-based four-leg inverter with minimal common mode voltage generation