Implications in the use of secondary ion mass spectrometry to investigate impurity concentration profiles in solids