Defect structure and polytypism in silicon carbide