The dynamics of peace