Local measurement of terahertz field-induced second harmonic generation in plasma filaments and single-shot detection of THz using third-order nonlinearities