Gravar-mail: Predictors of length of stay in psychiatry: analyses of electronic medical records