Photoemission studies of surface core‐level shifts and their applications