It only takes a tiny induced current to fry a semiconductor, I seriously doubt your Billions of Megatons figure. A hundred kilotons at the right altitude can do a LOT of damage. Not necessary your infrastructure i.e. transformers you have to worry about, its the control systems.