Assessment of motion ranges of knee and ankle joints of the affected limbs in patients with hemiparesis after cerebrovascular accidents