Valence-band and core-level photoemission spectroscopy of LaFeAsO 1 − x F x