Impact of Gain Dynamics on the Cross-Polarization Modulation Effect in Semiconductor Optical Amplifier