Interfacing Techniques for Transient Stability and Electromagnetic Transient Programs