Carbon allotropes consisting of rings and cubes