Matrix optimization based Euclidean embedding with outliers