Spatial enhancement and restoration of chemical images from secondary ion mass spectrometry and ion scattering spectrometry