Gain and refractive index dynamics in p-doped InAs quantum dash semiconductor optical amplifiers