Linear Stability of Periodic Orbits in Lagrangian Systems