Small-signal analysis of two cascaded semiconductor optical amplifiers in a counterpropagating configuration