Frequency measurement of pure rotational transitions of D2O using tunable terahertz spectrometer