One-Electron Transitions in the XANES of Condensed Systems