Portable Motion-Analysis Device for Upper-Limb Research