Structural and electronic properties of SiC polytypes