The theory of irradiation damage in graphite