Bayesian Hierarchical Grouping: perceptual grouping as mixture estimation