A method for applying linear optimal control theory to the design of a regulator for a flexible- aircraft