Hardware-in-the-loop based testing of wind turbine controllers for transient stability enhancement