Factors affecting Medicaid patients' length of stay in psychiatric units