Temporal evolution of self-phase modulation dynamics in a semiconductor optical amplifier under multiwavelength pulse amplification