Effects of Stone-Wales and vacancy defects in atomic-scale friction on defective graphite