Stav dette: Energy function analisys for power system stability