Definition of the spatial resolution of X-ray microanalysis in thin foils