Principle of pre-carbonization of negative electrode materials for batteries