Improved charge transfer multiplet method to simulate M- and L-edge X-ray absorption spectra of metal-centered excited states.