Thermoelectric properties of heavily boron- and phosphorus-doped silicon