Control Design via Pole Placement for an Inverted Pendulum on a Cart with Pre-Compensator Design