Design and implementation of a real-time network-based substation simulation system