Association of functional and cognitive impairment severity with discharge to long-term care facilities in older patients admitted to a general acute care hospital from home.