Prediction of long-term functional outcome after stroke rehabilitation