Co-simulation of power system transients using dynamic phasor and electromagnetic transient simulators