Main circuit architecture of energy storage inverter