A Bayesian nonparametric approach to modeling market share dynamics