A Bayesian strategy to enhance the performance of indoor localization systems