A machine learning framework for gait classification using inertial sensors: Application to elderly, post-stroke and huntington’s disease patients