Design of a mechatronic system for postural control analysis