Complex-permittivity measurement with phase-sensitive continuous-wave THz homodyne spectroscopy