Association between comorbid mental illness and preceding emergency department visits in unplanned admissions