A clinical system for foot and ankle motion analysis