Measurement of lifetimes of nuclear excited states by doppler shift attenuation method