Electronic properties of 2D and 1D carbon allotropes based on a triphenylene structural unit.