Effects of MBE growth conditions on carbon contamination in GaAs