Sharp analysis of EM for learning mixtures of pairwise differences