Interaction of intense laser pulses with gas for two-color THz generation and remote magnetometry