Simulation, Control Design, and Experiments on Single and Double Inverted Pendulum Systems