Impulsive Optimal Control Of Hybrid Finite-Dimensional Lagrangian Systems