Revisiting surface core-level shifts for ionic compounds