Fundamentals of X-Ray Photoemission Spectroscopy