Semiconductor optical amplifier gate array devices and applications