All-Optical Generation and Switching of Few-Cycle Millimeter-Wave Pulses