Surface core-level shifts at the end and beginning of the transition metal series