As the data-center boom puts pressure on the grid, some companies say the answer isn’t just more power plants but software ...