A latent variable approach to measuring and explaining peace agreement strength