Time- and spatially-resolved characterization of electrical discharge machining plasma