Valence and core level photoemission spectra of AlxGa1−xAs