Energy storage grid-connected inverter control design