Text this: Improved method of step length estimation based on inverted pendulum model