A dynamic phasor model of a modular multilevel converter for EMT co-simulation