The triangle inequality constraint in similarity judgments