All-optical modulation, gating, switching