average length of stay in inpatient rehabilitation