Electrical characteristics of carbon-doped GaAs