Early recognition of upper limb motor tasks through accelerometers: Real-time implementation of a DTW-based algorithm