Energy storage DC grid connection