Semiclassical theory of magnetization for a two-dimensional non-interacting electron gas