Differential effects of familiarity on judgments of sameness and difference