Conductivity transition of semiconducting boron carbide by doping