A simple approach to polytypes of SiC and its application to nanowires