The reactive energy of transient EM fields