SMS dit: Algorithmic Construction of Lyapunov Functions for Power System Stability Analysis.