Bayesian nonparametric modeling of dynamic international relations