High-precision estimation of emitter positions using Bayesian grouping of localizations