Distributed Control Of Inverter-Based Power Grids