Characterization of membranes with X-ray ultramicroscopy