Activity recognition invariant to position and orientation of wearable motion sensor units