Photoluminescence studies of the amphoteric behavior of carbon and germanium in GaAs