What is the purpose of doping silicon in semiconductor devices?
A. To increase mechanical strength
B. To enhance electrical conductivity
C. To change color
D. To reduce weight