The association between patients participation and functional gain following inpatient rehabilitation