The Derivation of Structural Properties of LM-g Splines by Necessary Condition of Optimal Control