Energy band alignment in chalcogenide thin film solar cells from photoelectron spectroscopy