Text this: Impedance modeling and stability analysis of a three-phase three-level NPC inverter connected to the grid