Gain and phase dynamics of InAs/GaAs quantum dot semiconductor optical amplifiers