Text this: Optimal LQG controller design for inverted pendulum systems using a comprehensive approach