The effect of a stacking fault on the electronic properties of dopants in gallium arsenide