Lyapunov function for power systems with transfer conductances: extension of the invariance principle