The impact of dementia and language on hospitalizations: a retrospective cohort of long-term care residents