Self-consistent electronic structure of transition-metal surfaces: The Mo (001) surface | Synapse