Text this: Design of linear quadratic regulator controller with adjustable gain function for rotary inverted pendulum system