Microanalysis with an X-ray scanning microscope