Can the smart grid survive a cyberattack?