Interfacing a transient stability model to a real-time electromagnetic transient simulation using dynamic phasors