Measurement of the lifetime of metastable species by electron impact dissociation of molecules