Computing Marginal and Conditional Divergences between Decomposable Models with Applications