Microphotometry in X-ray contact microscopy