Automated data mining of secondary ion mass spectrometry spectra