A Distributed Architecture for on-line Power Systems Security Analysis