Surface analysis and angular distributions in x-ray photoelectron spectroscopy