On-line contingency screening and remedial action for dynamic security analysis