Pure silicon can be changed into P-type semiconductor by adding an impurity. Explain how this is achieved.