Survival analysis of older adults with dementia: predicting factors after unplanned hospitalization in Maharaj Nakorn Chiang Mai Hospital