Quantitative Estimation of Movement Progress during Rehabilitation after Knee/Hip Replacement Surgery