Bayesian networks to discover similarities among subsets. Comparing European countries