Transient electromagnetic device