Atomic‐level characterization of materials with core‐ and valence‐level photoemission: basic phenomena and future directions