Development of a WAMS based test platform for power system real time transient stability detection and control