Optimized edge appearance probability for cooperative localization based on tree-reweighted nonparametric belief propagation