A study of patient flow through inpatient rehabilitation and potential for improvements