Modeling of semiconductor devices for high-speed all-optical signal processing