Scientists develop method to predict the spread of armed conflicts