Factors involved in memory encoding and their implications for the memory performance of older adults and people with mild cognitive impairment