First-principles study of the electronic properties of graphite.