An index for quantifying deviations from normal gait