Architecture of a Network-In-The-Loop Environment for Characterizing AC Power System Behavior