Design and Analysis of Sliding Mode Control Algorithms for Power Networks