Stacking fault effects in pure and n-type doped GaAs