Particle identification in ALICE: a Bayesian approach