An event-related potential study of encoding in young and older adults