Terahertz quantum cascade laser as local oscillator in a heterodyne receiver