Decoding 2D kinematics of human arm for body machine interfaces