Effect of dangling bonds on the doped GaAs nanowires