Quantifying Atomistic Similarity of Carbon Allotropes for Structural Comparison and Classification