Spatial resolution for compositional analysis in STEM