Quantum control of reactions with few-cycle infrared and ultraviolet laser pulses