Testing of Switchgear Operation in an IEC 61850 Based SAS Using a Real-Time Simulator