Energy storage inverter control design