The association between patient participation and functional gain following inpatient rehabilitation