Stability analysis of a pneumatically actuated inverted pendulum