Analysis of the transient response of nuclear spins in GaAs with/without nuclear magnetic resonance