Perturbation analysis of the euclidean distance matrix optimization problem and its numerical implications