Space division switches based on semiconductor optical amplifiers