Tutorial solution to the linear quadratic regulator problem using H2 optimal control theory