Constraints on primordial isocurvature perturbations and spatial curvature by Bayesian model selection