Influence of growth parameters on the incorporation of residual impurities in GaAs grown by metalorganic chemical vapor deposition