Researchers say babies learn better before sleep