Band-contact lines in the electron energy spectrum of graphite