Online monitoring & mitigation of voltage instability in transmission and distribution systems using synchrophasors