Development of the submillimeter wave pulsed ESR spectrometer