Local heteroallotropic structures of carbon