Two-stage carbonization of coal into blast furnace coke with controlled production of tar