Mechanism of carbonization of a semianthracite