Trajectories in functional recovery for patients receiving inpatient rehabilitation for unilateral hip or knee replacement.