Density of states of a two-dimensional electron gas measured by high resolution photoelectron spectroscopy