grid stability artificial intelligence