Protecting power systems from destructive electromagnetic fields