An analysis of Hebb's cell assembly as a mechanism for perceptual generalization