Two-dimensional electron density of states in a transverse magnetic field