Determinants of length of stay for psychiatric inpatients: analysis of a national database covering the entire Korean elderly population.