Bidirectional energy storage inverter topology analysis