Eliminating leakage currents in neutral point clamped inverters for photovoltaic systems