Effect of damage cascades on the irradiation-induced amorphization in graphite