A Model Predictive Approach to Preventing Cascading Failures of Power Systems