State Observer and Controller Design for Pendulum on Cart