Dispersive soft x-ray absorption fine- structure spectroscopy in graphite with an attosecond pulse