Random forests based model for preventing large-scale emergencies in power systemsстатья