Characterization of Power Systems Near Their Stability Boundary by Lyapunov Direct Method