Effect of cognitive state on the consolidation of basic and complex memories