Protecting the north american power grid from widespread blackouts