Effects of dementia on postoperative outcomes of older adults with hip fractures: a population-based study.