Safe operation of electric grids with swarmenabled system services