Microscopic Mechanisms of Self-compensation in Si d-doped GaAs