Structure and solutions of the LQ optimal control problem for 2D systems