An investigation of gain and gain frequency spectrum in a semiconductor optical amplifier using numerical representation