Accounting for bias due to selective attrition in analyses of cognitive decline: the example of smoking and cognitive decline in older adults