Generation and detection of pulsed terahertz waves with laser induced microplasmas