Text this: Lagrangian Modelling and Motion Stability of Synchronous Generator-based Power Systems