Orientation dependent amphoteric behavior of group IV impurities in the molecular beam epitaxial and vapor phase epitaxial growth of GaAs