Estimating ankle torque and dynamics of the stabilizing mechanism