Development of a model of silicon carbide thermodestruction for preparation of graphite layers