Course of activities of daily living in nursing home residents with dementia from admission to 36-month follow-up