Stability of heterodyne terahertz receivers