Wearable kinaesthetic system for capturing and classifying upper limb gesture in post-stroke rehabilitation