Influence of stoichiometry and doping on vacancies in n-type GaAs