Text this: Theoretical and computational model of the human gait to simulate pathological patterns