The magnetic field dependence of the critical temperature for the electronic phase transition in graphite in the quantum limit