Distribution analysis of major and trace elements through semiconductor layers of changing matrix using secondary ion mass spectrometry (SIMS)