Switching technique for dual-two level inverter supplied by two separate sources