High-resolution gas phase spectroscopy with a distributed feedback terahertz quantum cascade laser