Polytypic transformations in silicon carbide