Energy dispersive x ray spectroscopy