Recent advances in Bayesian inference in cosmology and astroparticle physics thanks to the multinest algorithm