Distinguishing between the structures of different allotropes of carbon like graphite and diamond is fundamental in chemistry and materials science.