Similar Items: Serial dependence predicts generalization in perceptual learning