Photoelectron spectroscopy study of amorphous GaAs and Ge