Proactive and retroactive effects of novelty and rest on memory