measure_divergence function

Calculate specified divergence measures for each posterior