Simulation of induction heating of a titanium sample in a container with a carbon-containing medium and determination of the amount of heat losses during chemical heat treatment