Measurement of the oxygen and impurity distribution in polycrystalline aluminum nitride with secondary ion mass spectrometry