Improved discrete-time switch model for electro-magnetic transient simulation of voltage sourced converters