Secondary ion mass spectrometry of compositional changes in garnet films