Risk-Based Dynamic Security Assessment of the Electricity Grid with High Penetration of Renewable Generation