Impact of medical comorbidity in psychiatric inpatient length of stay