Comparison of amorphous and liquid alloys by photoelectron spectroscopy