Association of sleep duration in middle and old age with incidence of dementia