Density of states and thermodynamic properties of a two-dimensional electron gas in a strong external magnetic field