Influence Models of Cascading Failure and Frequency Oscillation in the Power Grid