When the levee breaks: a forecasting model of violent and nonviolent dissent