Integration and specificity of retrieval in a memory-based model of reinforcement