Self-consistent Green’s-function technique for bulk and surface impurity calculations: Surface core-level shifts by complete screening | Synapse