Engram dynamics under memory consolidation