X-ray spectroscopy and electron microscopy of planetary materials