Comparison of Sagnac and Mach-Zehnder ultrafast all-optical interferometric switches based on a semiconductor resonant optical nonlinearity.