Dynamics of pathological gait