High-resolution secondary ion mass spectrometry (SIMS) for use in chemistry