A wearable system for measuring limb movements and balance control abilities based on a modular and low-cost inertial unit