Thermal and electrical co-design of a modular high-density single-phase inverter using wide-bandgap devices