Simulation and design of ultrafast all-optical Boolean XOR gate with semiconductor optical amplifier-assisted Sagnac switch