Changes in the electronic structure of highly compressed iron revealed by X-ray fluorescence lines and absorption edges