An analytical method for multimorbidity management using Bayesian networks