Balanced harmonic generator-detector system for 2 mm and 1.4 mm wavelength radiation