The power of prescience: Predicting and preventing blackouts on the US power grid