Method for measuring impurity distributions in semiconductor crystals