Hardware-In-The-Loop Testing of Security and Stability Control System for Large-Scale Power System