Photoelectron spectroscopy—principles and applications