Industrial and commercial energy storage bidirectional inverter