Two-dimensional and tubular structures of misfit compounds: Structural and electronic properties