Two-beam interferometer for optical constants measurements at near-millimeter wavelengths