Density profiles of a self-gravitating lattice gas in one, two, and three dimensions Article uri icon