Resonant Terahertz Generation by Optical Mixing of Two Laser Pulses in Rippled Density Plasma