Design and study of a pneumatically actuated inverted pendulum system controlled using a programmable logic controller