Measuring the effective complexity of cosmological models